<?php

namespace App\Store\Validate\Financial\Statements;

use App\Common\Validate\BaseValidate;

/**
 * 验证器
 */
class Cash extends BaseValidate
{
    //验证规则
    protected $rule = [];
    //自定义验证信息
    protected $message = [];

    public function __construct($doaction = 'add')
    {
        if ($doaction == 'add') {
            $this->rule = [
                'taxpayer_identification_number'  => 'required',
                'company'  => 'required',
            ];
            $this->message = [
                'taxpayer_identification_number.required'  => '纳税人识别号不能为空',
                'company.required'  => '编制单位不能为空',
            ];
        }
    }
}
